package com.itheima.demo05;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/13 19:02
 */
public class Demo_004 {
    public static void main(String[] args) {
        Desk desk = new Desk();
        Foodli f = new Foodli(desk);
        Cooker c = new Cooker(desk);
        Thread t = new Thread(f);
        Thread t1 = new Thread(c);
        t.start();
        t1.start();

    }
}
